package com.zhixiang.xaec.service.health.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zhixiang.core.dao.BaseDao;
import com.zhixiang.core.service.impl.BaseServiceImpl;
import com.zhixiang.xaec.dao.health.PhysicalRecordDao;
import com.zhixiang.xaec.entity.health.PhysicalRecord;
import com.zhixiang.xaec.service.health.PhysicalRecordService;
@Service
public class PhysicalRecordServiceImpl extends BaseServiceImpl<PhysicalRecord, Long> implements PhysicalRecordService{

	@Override
	@Resource(type=PhysicalRecordDao.class)
	public void setBaseDao(BaseDao<PhysicalRecord, Long> dao) {
		
		setDao(dao);
	}

	@Override
	public void delete(String[] ids) {
		
		for(String id:ids){
			getDao().remove(Long.valueOf(id));
		}
	}

}
